package edu.gznu.ics.fast.pulsar.controller.prestoacc.picController;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import edu.gznu.ics.fast.pulsar.model.vo.prestoacc.task.computeTask.TaskMonitorItemVO;
import edu.gznu.ics.fast.pulsar.service.prestoacc.picService.TaskMonitorService;

@Controller
public class TaskMonitorController {
	@Autowired
	private TaskMonitorService taskMonitorService;
	
	@RequestMapping(value = {"task_monitor.do"})
	public ModelAndView taskMonitor() {
		List<TaskMonitorItemVO> itemList = taskMonitorService.findList();
		ModelAndView view = new ModelAndView();
		view.setViewName("/task_monitor");
		view.addObject("itemList", itemList);
		return view;
	}
}
